package com.zzy.sqlSession;

import com.zzy.pojo.Configuration;
import com.zzy.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * 文件描述: <br>
 * 版权所有: Copyright (c) 2021/5/2<br>
 * 完成日期: 2021/5/2<br>
 *
 * @author zainzhang
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    int update(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    void close() throws SQLException;
}
